#include <iostream>
#include <string>
#include <vector>

//工具函数类
class Util
{
public:
    //将str函数，按照sep为间隔，切分进s中
    // aaaaa\r\nbbbbbb\r\ncccccccc
    static void CutString(const std::string& str, const std::string& sep, std::vector<std::string>* s)
    {
        size_t start = 0;
        while (start < str.size())
        {
            int find = str.find(sep, start);
            if (find == std::string::npos)
                break;
            s->push_back(str.substr(start, find - start));
            start = find;
            start += sep.size();
        }

        if (start < str.size())
        {
            s->push_back(str.substr(start));
        }
    }
};